//
//  BaseViewController.h
//  news_ios_app
//
//  Created by apple on 16/3/16.
//  Copyright © 2016年 apple. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BaseTableView.h"

@interface BaseViewController : UIViewController<UITableViewDataSource,UITableViewDelegate, UIGestureRecognizerDelegate>

@property (nonatomic, strong) UIButton *backBtn;     //返回按钮

@property (nonatomic, strong) UIButton *searchBtn;   //搜索按钮

@property (nonatomic, strong) UIButton *rightBtn;    //右边按钮

@property (nonatomic, strong) BaseTableView *baseTableView;

@property (readonly, nonatomic) UISwipeGestureRecognizer *backSwipeGestureRecognizer;

-(void)backAction:(id)sender;
-(void)rightAction:(id)sender;

- (void)showWaitAlert;
- (void)showWaitAlert:(NSString*)alertString;
- (void)hideWaitAlert;

- (void)enterViewController:(UIViewController *)vc;

// 增加数据源
- (void)setDataArr:(NSMutableArray *)dataArr;

@end
